<?php session_start(); ?>

<!DOCTYPE html>
<html>
	<head>
		<title>Cameleon events - Sorties et Evénements en France</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="../Vue/CSS/profil.css" />
		<script type="text/javascript" src="../Vue/JavaScript/jquery-1.2.6.min.js"></script>
		<script type="text/javascript" src="../Vue/JavaScript/animeImage.js"></script>
	</head>
	<body>
		<?php
			include('../Modele/traitement_amis.php');		
			include('../Modele/traitement_utilisateur.php');
			include('../Modele/traitement_organisateur.php');
			include('../Modele/traitement_like.php');
			
			if(isset($_GET['target'])) {
				if($_GET['target'] == "suppr_ami") {
					supprimer_ami($_POST['id_auteur'], $_POST['id_receveur']);
				} else if($_GET['target'] == "suppr_like") {
					supprimer_like($_POST['id_like']);
				} else if($_GET['target'] == "suppr_commentaire") {
					supprimer_commentaire($_POST['id_commentaire']);
				}
			}
			
			include('../Vue/profil.php'); 
		?>
	</body>
</html>